package com.zzyl.task;

import ch.qos.logback.classic.Logger;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;

import java.time.LocalDateTime;

@Slf4j
public class testTask {

    @Scheduled(cron = "0/5 * * * * ?")
    public static void main(String[] args) {
        log.info("执行定时任务"+ LocalDateTime.now());
    }
}
